<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>Admin Interface</title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php use_stylesheet('admin.css') ?>
    <?php include_javascripts() ?>
    <?php include_stylesheets() ?>
  </head>
  <body>
    <div id="container">
      <div id="header">
        <span style="float: left; margin: 14px 0px 5px 15px; text-align: left;">
          <a href="<?php echo url_for('homepage') ?>" style="font-size: 22px;">
                Sistema de Gestión de Contenidos
          </a>
          </span>
          <?php if($sf_user->isAuthenticated()): ?>
          <span style="float: right; margin: 10px 15px 5px 0px; text-align: right;">
              Bienvenido <b><?php  echo $sf_user->getName() ?></b>            
              <br/>
              <a href="<?php echo url_for('sf_guard_signout')?>">Salir</a>
          </span>         
          
          <?php endif; ?>
      </div>
 <?php if($sf_user->isAuthenticated()): ?>
        <div>
        <ul id="menu_new">
          <li>
            <?php echo link_to('Noticias', 'blog_new') ?>
          </li>           
            <li>
            <?php echo link_to('Categorias', 'blog_category') ?>
          </li>
           <li style="float:right">
            <a href="<?php echo url_for('sf_guard_edit', $sf_user->getGuardUser())?>">Mi cuenta</a>            
            </li>
        </ul>
            
            
      </div>
        <?php endif ?>
 
      <div id="content">
        <?php echo $sf_content ?>
      </div>
 
      
    </div>
  </body>
</html>